//
//  YGDropdownListItem.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/17.
//

#import "YGDropdownListItem.h"


@interface YGDropdownListItem()
@property (nonatomic, copy, readonly) NSString *itemId;
@property (nonatomic, copy, readonly) NSString *itemName;
- (instancetype)initWithItem:(NSString*)itemId itemName:(NSString*)itemName NS_DESIGNATED_INITIALIZER;

@end


@implementation YGDropdownListItem

- (instancetype)initWithItem:(NSString*)itemId itemName:(NSString*)itemName { 
    self = [super init];
    if (self) {
        _itemId = itemId;
        _itemName = itemName;
    }
    return self;
}

- (instancetype)init {
    return [self initWithItem:nil itemName:nil];
}
@end

